Integrand size = 25, antiderivative size = 130 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=-\frac {e f^2 p}{12 d x^4}+\frac {e f (e f-3 d g) p}{6 d^2 x^2}+\frac {e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p \log (x)}{3 d^3}-\frac {(e f-d g)^3 p \log \left (d+e x^2\right )}{6 d^3 f}-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2525, 37, 2461, 12, 90} \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}-\frac {p (e f-d g)^3 \log \left (d+e x^2\right )}{6 d^3 f}+\frac {e f p (e f-3 d g)}{6 d^2 x^2}+\frac {e p \log (x) \left (3 d^2 g^2-3 d e f g+e^2 f^2\right )}{3 d^3}-\frac {e f^2 p}{12 d x^4} \]
[In]
[Out]
Rule 12
Rule 37
Rule 90
Rule 2461
Rule 2525
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \text {Subst}\left (\int \frac {(f+g x)^2 \log \left (c (d+e x)^p\right )}{x^4} \, dx,x,x^2\right ) \\ & = -\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}-\frac {1}{2} (e p) \text {Subst}\left (\int -\frac {(f+g x)^3}{3 f x^3 (d+e x)} \, dx,x,x^2\right ) \\ & = -\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}+\frac {(e p) \text {Subst}\left (\int \frac {(f+g x)^3}{x^3 (d+e x)} \, dx,x,x^2\right )}{6 f} \\ & = -\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6}+\frac {(e p) \text {Subst}\left (\int \left (\frac {f^3}{d x^3}+\frac {f^2 (-e f+3 d g)}{d^2 x^2}+\frac {f \left (e^2 f^2-3 d e f g+3 d^2 g^2\right )}{d^3 x}+\frac {(-e f+d g)^3}{d^3 (d+e x)}\right ) \, dx,x,x^2\right )}{6 f} \\ & = -\frac {e f^2 p}{12 d x^4}+\frac {e f (e f-3 d g) p}{6 d^2 x^2}+\frac {e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p \log (x)}{3 d^3}-\frac {(e f-d g)^3 p \log \left (d+e x^2\right )}{6 d^3 f}-\frac {\left (f+g x^2\right )^3 \log \left (c \left (d+e x^2\right )^p\right )}{6 f x^6} \\ \end{align*}
Time = 0.08 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.08 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=-\frac {d e f p x^2 \left (-2 e f x^2+d \left (f+6 g x^2\right )\right )-4 e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p x^6 \log (x)+2 e \left (e^2 f^2-3 d e f g+3 d^2 g^2\right ) p x^6 \log \left (d+e x^2\right )+2 d^3 \left (f^2+3 f g x^2+3 g^2 x^4\right ) \log \left (c \left (d+e x^2\right )^p\right )}{12 d^3 x^6} \]
[In]
[Out]
Time = 1.42 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.22
method | result | size |
parts | \(-\frac {\ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) g^{2}}{2 x^{2}}-\frac {\ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) f g}{2 x^{4}}-\frac {\ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) f^{2}}{6 x^{6}}-\frac {p e \left (\frac {\left (-3 g^{2} d^{2}+3 d e f g -e^{2} f^{2}\right ) \ln \left (x \right )}{d^{3}}+\frac {f^{2}}{4 d \,x^{4}}+\frac {f \left (3 d g -e f \right )}{2 d^{2} x^{2}}+\frac {\left (3 g^{2} d^{2}-3 d e f g +e^{2} f^{2}\right ) \ln \left (e \,x^{2}+d \right )}{2 d^{3}}\right )}{3}\) | \(159\) |
parallelrisch | \(\frac {12 \ln \left (x \right ) x^{6} d^{2} e^{2} g^{2} p^{2}-12 \ln \left (x \right ) x^{6} d \,e^{3} f g \,p^{2}+4 \ln \left (x \right ) x^{6} e^{4} f^{2} p^{2}-6 x^{6} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) d^{2} e^{2} g^{2} p +6 x^{6} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) d \,e^{3} f g p -2 x^{6} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) e^{4} f^{2} p -6 x^{4} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) d^{3} e \,g^{2} p -6 x^{4} d^{2} e^{2} f g \,p^{2}+2 x^{4} d \,e^{3} f^{2} p^{2}-6 x^{2} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) d^{3} e f g p -x^{2} d^{2} e^{2} f^{2} p^{2}-2 \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) d^{3} e \,f^{2} p}{12 x^{6} d^{3} e p}\) | \(261\) |
risch | \(-\frac {\left (3 g^{2} x^{4}+3 f g \,x^{2}+f^{2}\right ) \ln \left (\left (e \,x^{2}+d \right )^{p}\right )}{6 x^{6}}+\frac {-3 i \pi \,d^{3} f g \,x^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )-i \pi \,d^{3} f^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )+3 i \pi \,d^{3} g^{2} x^{4} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \right )-3 i \pi \,d^{3} g^{2} x^{4} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )+12 \ln \left (x \right ) d^{2} e \,g^{2} p \,x^{6}-12 \ln \left (x \right ) d \,e^{2} f g p \,x^{6}+4 \ln \left (x \right ) e^{3} f^{2} p \,x^{6}-6 \ln \left (e \,x^{2}+d \right ) d^{2} e \,g^{2} p \,x^{6}+6 \ln \left (e \,x^{2}+d \right ) d \,e^{2} f g p \,x^{6}-2 \ln \left (e \,x^{2}+d \right ) e^{3} f^{2} p \,x^{6}+i \pi \,d^{3} f^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \right )-3 i \pi \,d^{3} g^{2} x^{4} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2}-i \pi \,d^{3} f^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2}-3 i \pi \,d^{3} f g \,x^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2}+3 i \pi \,d^{3} f g \,x^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \right )+3 i \pi \,d^{3} f g \,x^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{3}+3 i \pi \,d^{3} g^{2} x^{4} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{3}+i \pi \,d^{3} f^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{3}-6 \ln \left (c \right ) d^{3} g^{2} x^{4}-6 d^{2} e f g p \,x^{4}+2 d \,e^{2} f^{2} p \,x^{4}-6 \ln \left (c \right ) d^{3} f g \,x^{2}-d^{2} e \,f^{2} p \,x^{2}-2 \ln \left (c \right ) d^{3} f^{2}}{12 d^{3} x^{6}}\) | \(656\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 183, normalized size of antiderivative = 1.41 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=\frac {4 \, {\left (e^{3} f^{2} - 3 \, d e^{2} f g + 3 \, d^{2} e g^{2}\right )} p x^{6} \log \left (x\right ) - d^{2} e f^{2} p x^{2} + 2 \, {\left (d e^{2} f^{2} - 3 \, d^{2} e f g\right )} p x^{4} - 2 \, {\left (3 \, d^{3} g^{2} p x^{4} + 3 \, d^{3} f g p x^{2} + {\left (e^{3} f^{2} - 3 \, d e^{2} f g + 3 \, d^{2} e g^{2}\right )} p x^{6} + d^{3} f^{2} p\right )} \log \left (e x^{2} + d\right ) - 2 \, {\left (3 \, d^{3} g^{2} x^{4} + 3 \, d^{3} f g x^{2} + d^{3} f^{2}\right )} \log \left (c\right )}{12 \, d^{3} x^{6}} \]
[In]
[Out]
Timed out. \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 137, normalized size of antiderivative = 1.05 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=-\frac {1}{12} \, e p {\left (\frac {2 \, {\left (e^{2} f^{2} - 3 \, d e f g + 3 \, d^{2} g^{2}\right )} \log \left (e x^{2} + d\right )}{d^{3}} - \frac {2 \, {\left (e^{2} f^{2} - 3 \, d e f g + 3 \, d^{2} g^{2}\right )} \log \left (x^{2}\right )}{d^{3}} + \frac {d f^{2} - 2 \, {\left (e f^{2} - 3 \, d f g\right )} x^{2}}{d^{2} x^{4}}\right )} - \frac {{\left (3 \, g^{2} x^{4} + 3 \, f g x^{2} + f^{2}\right )} \log \left ({\left (e x^{2} + d\right )}^{p} c\right )}{6 \, x^{6}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 464 vs. \(2 (120) = 240\).
Time = 0.32 (sec) , antiderivative size = 464, normalized size of antiderivative = 3.57 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=-\frac {\frac {2 \, {\left (e^{4} f^{2} p + 3 \, {\left (e x^{2} + d\right )} e^{3} f g p - 3 \, d e^{3} f g p + 3 \, {\left (e x^{2} + d\right )}^{2} e^{2} g^{2} p - 6 \, {\left (e x^{2} + d\right )} d e^{2} g^{2} p + 3 \, d^{2} e^{2} g^{2} p\right )} \log \left (e x^{2} + d\right )}{{\left (e x^{2} + d\right )}^{3} - 3 \, {\left (e x^{2} + d\right )}^{2} d + 3 \, {\left (e x^{2} + d\right )} d^{2} - d^{3}} - \frac {2 \, {\left (e x^{2} + d\right )}^{2} e^{4} f^{2} p - 5 \, {\left (e x^{2} + d\right )} d e^{4} f^{2} p + 3 \, d^{2} e^{4} f^{2} p - 6 \, {\left (e x^{2} + d\right )}^{2} d e^{3} f g p + 12 \, {\left (e x^{2} + d\right )} d^{2} e^{3} f g p - 6 \, d^{3} e^{3} f g p - 2 \, d^{2} e^{4} f^{2} \log \left (c\right ) - 6 \, {\left (e x^{2} + d\right )} d^{2} e^{3} f g \log \left (c\right ) + 6 \, d^{3} e^{3} f g \log \left (c\right ) - 6 \, {\left (e x^{2} + d\right )}^{2} d^{2} e^{2} g^{2} \log \left (c\right ) + 12 \, {\left (e x^{2} + d\right )} d^{3} e^{2} g^{2} \log \left (c\right ) - 6 \, d^{4} e^{2} g^{2} \log \left (c\right )}{{\left (e x^{2} + d\right )}^{3} d^{2} - 3 \, {\left (e x^{2} + d\right )}^{2} d^{3} + 3 \, {\left (e x^{2} + d\right )} d^{4} - d^{5}} + \frac {2 \, {\left (e^{4} f^{2} p - 3 \, d e^{3} f g p + 3 \, d^{2} e^{2} g^{2} p\right )} \log \left (e x^{2} + d\right )}{d^{3}} - \frac {2 \, {\left (e^{4} f^{2} p - 3 \, d e^{3} f g p + 3 \, d^{2} e^{2} g^{2} p\right )} \log \left (e x^{2}\right )}{d^{3}}}{12 \, e} \]
[In]
[Out]
Time = 1.66 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.16 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^7} \, dx=\frac {\ln \left (x\right )\,\left (3\,p\,d^2\,e\,g^2-3\,p\,d\,e^2\,f\,g+p\,e^3\,f^2\right )}{3\,d^3}-\frac {\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (\frac {f^2}{6}+\frac {f\,g\,x^2}{2}+\frac {g^2\,x^4}{2}\right )}{x^6}-\frac {\ln \left (e\,x^2+d\right )\,\left (3\,p\,d^2\,e\,g^2-3\,p\,d\,e^2\,f\,g+p\,e^3\,f^2\right )}{6\,d^3}-\frac {\frac {e\,f^2\,p}{4\,d}+\frac {e\,f\,p\,x^2\,\left (3\,d\,g-e\,f\right )}{2\,d^2}}{3\,x^4} \]
[In]
[Out]